//import org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsAnnotationConfiguration;
dataSource { pooled = true //configClass = GrailsAnnotationConfiguration.class
}
hibernate {
	cache.use_second_level_cache=true
	cache.use_query_cache=true
	cache.provider_class='net.sf.ehcache.hibernate.EhCacheProvider'
}

// environment specific settings
environments {
	development {
		dataSource {
			dbCreate = "update"
			url = "jdbc:postgresql://localhost:5432/gphoto"
			driverClassName = "org.postgresql.Driver"
			username = "grails"
			password = "grails"
			dialect = org.hibernate.dialect.PostgreSQLDialect
		}
	}
	test {
		dataSource {
			dbCreate = "create-drop"
			url = "jdbc:hsqldb:mem:testDb"
			driverClassName = "org.hsqldb.jdbcDriver"
			username = "sa"
			password = ""
		}
	}
	production {
		dataSource {
			dbCreate = "update"
			url = "jdbc:postgresql://localhost:5432/gphoto"
			driverClassName = "org.postgresql.Driver"
			username = "grails"
			password = "grails"
			dialect = org.hibernate.dialect.PostgreSQLDialect
		}
	}
}